home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group02b.txt / 000006_icon-group-sender_Fri Aug 16 16:13:23 2002.msg < prev    next >
Internet Message Format  |  2003-01-02  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id g7GNDLU22966
  4.     for icon-group-addresses; Fri, 16 Aug 2002 16:13:21 -0700 (MST)
  5. Message-Id: <200208162313.g7GNDLU22966@baskerville.CS.Arizona.EDU>
  6. From: Bob Ardler <ardler@argonet.co.uk>
  7. To: icon-group@cs.arizona.edu
  8. Date: Fri, 16 Aug 2002 10:44:22 +0100
  9. Subject: Re: What about "Expressions?"
  10. User-Agent: Pluto/2.04e (RISC-OS/4.03)
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12. Status: RO
  13.  
  14. Christopher Browne wrote:
  15. > I'm just not sure I'm seeing what is the essential difference
  16. > between "statements" and "expressions" here.
  17. I think he's saying that something in Icon which in normal imperative
  18. languages you'd naturally call a statement and never call an
  19. expression, eg a:=b, has a value - either success or fail, so that
  20. makes it an expression and you can use it like other expressions as a
  21. sub-expression.
  22.  
  23. Earlier:
  24. >How about Scheme - or for that matter the whole functional camp?
  25. Maybe it's the contrasting look and feel of complete programs:
  26. assembler a string of assignments and jumps, Algol a string of mostly
  27. assignments where you can get by without gotos and the gosubs have
  28. evolved into procedures and functions, LISP where it's one monster
  29. function and assignments feel uncomfortable. If your mother tongue is
  30. one style of language it's harder to learn a different style than a
  31. similar. An appeal of Icon is the way it has its expression-
  32. evaluation character but it's written down like and looks like an
  33. imperative language, which might feel more comfortable for some.
  34.  
  35.  
  36.